package 单元测试.作业;

import org.junit.Before;
import org.junit.Test;

import java.io.FileInputStream;
import java.util.Properties;

public class 编写测试类日志 {
    Properties properties=null;

    @Before
    public void main()throws Exception {
        properties=new Properties();
        properties.load(new FileInputStream("E:\\code\\java_se\\resources\\person.properties"));
    }

    @Test
    public void getname()throws Exception{
        System.out.println(properties.getProperty("name"));
    }

    @Test
    public void getage()throws Exception{
        System.out.println(properties.getProperty("age"));
    }

    @Test
    public void xingbie()throws Exception{
        System.out.println(properties.getProperty("xingbie"));
    }
}
